﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrderAddControl.ascx.cs" Inherits="PayrollHR.Administration.Modules.OrderAddControl" %>
<%@ Register Src="ToolTipLabelControl.ascx" TagName="ToolTipLabelControl" TagPrefix="uc1" %>
<%@ Register Src="DatePickerRequied.ascx" TagName="DatePickerRequied" TagPrefix="uc2" %>
<asp:UpdatePanel ID="upForumSubscriptions" runat="server">
    <ContentTemplate>
        <div class="section-header">
            <div class="title">
                <img src="Common/ico-catalog.png" alt='<%=GetLocaleResourceString("Admin.OrderAddControl.AddOrder")%>' />
                <%=GetLocaleResourceString("Admin.OrderAddControl.AddOrder")%>
                <asp:Label runat="server" ID="lblTitle" />
                <a href="DevicesManager.aspx" title='<%=GetLocaleResourceString("Admin.OrderAddControl.BackToCustomerList")%>'>
                    <%=GetLocaleResourceString("Admin.OrderAddControl.BackToCustomerList")%>
                </a>
            </div>
            <div class="options">
                <asp:HyperLink ID="hlexport" runat="server" ForeColor="#6600CC" Visible="False">[hlexport]</asp:HyperLink>
                <asp:Button ID="SaveButton" runat="server" Text="<% $PayrollResources:Admin.CustomerAdd.SaveButton.Text %>"
                    ToolTip="<% $PayrollResources:Admin.CustomerAdd.SaveButton.Tooltip %>" CssClass="adminButtonBlue" OnClick="SaveButton_Click" />
                <asp:Button ID="SaveAndStayButton" runat="server" CssClass="adminButtonBlue" Text="<% $PayrollResources:Admin.CustomerAdd.SaveAndStayButton.Text %>" ToolTip="<% $PayrollResources:Admin.CustomerAdd.SaveAndStayButton.Tooltip %>"
                    OnClick="SaveAndStayButton_Click" />
            </div>
        </div>
        <p></p>
        <table class="adminContent">
            <tr>               
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl1" runat="server" Text="<% $PayrollResources:Admin.OrderAddControl.Transdate.Text %>"
                        ToolTip="<% $PayrollResources:Admin.rderAddControl.Transdate.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <uc2:DatePickerRequied ID="dpTransdate" CssClass="adminInput" runat="server" />
                </td>
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl ID="ToolTipLabelControl2" runat="server" Text="<% $PayrollResources:Admin.OrderAddControl.Note.Text %>"
                        ToolTip="<% $PayrollResources:Admin.rderAddControl.Note.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtNote" CssClass="adminInput" BackColor="Yellow" TextMode="MultiLine" MaxLength="256" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
        <p>
        </p>
        <asp:GridView ID="gvOrder" runat="server" ForeColor="#333333" CellPadding="4" AutoGenerateColumns="False" Width="100%" DataKeyNames="CustomerID" AllowPaging="True"
            PageSize="30" OnPageIndexChanging="gvOrder_PageIndexChanging" >
            <Columns>
                <asp:TemplateField HeaderText="Tên Khách Hàng" ItemStyle-Width="20%">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblCustomerName" Text='<%#Eval("CustName") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="20%" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Mã số thuế"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblTaxCode" Text='<%#Eval("CustTaxCode") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Mobile"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="8%" ItemStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblMobile" Text='<%#Eval("CustMobile") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Left" Width="8%" />
                </asp:TemplateField>

            </Columns>
            <PagerSettings PageButtonCount="50" Position="TopAndBottom" />
        </asp:GridView>
    </ContentTemplate>
    <%--<Triggers>
        <asp:PostBackTrigger ControlID="SaveButton" />
        <asp:PostBackTrigger ControlID="SaveAndStayButton" />
    </Triggers>--%>
</asp:UpdatePanel>
<asp:UpdateProgress ID="up1" runat="server" AssociatedUpdatePanelID="upForumSubscriptions">
    <ProgressTemplate>
        <div class="progress">
            <asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/images/UpdateProgress.gif"
                AlternateText="update" />
            <%=GetLocaleResourceString("Admin.Common.Wait...")%>
        </div>
    </ProgressTemplate>
</asp:UpdateProgress>
